﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000737 RID: 1847
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetMainMissionCustomValueScRsp : IMessage<GetMainMissionCustomValueScRsp>, IMessage, IEquatable<GetMainMissionCustomValueScRsp>, IDeepCloneable<GetMainMissionCustomValueScRsp>, IBufferMessage
	{
		// Token: 0x1700179F RID: 6047
		// (get) Token: 0x0600530A RID: 21258 RVA: 0x000E0E67 File Offset: 0x000DF067
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetMainMissionCustomValueScRsp> Parser
		{
			get
			{
				return GetMainMissionCustomValueScRsp._parser;
			}
		}

		// Token: 0x170017A0 RID: 6048
		// (get) Token: 0x0600530B RID: 21259 RVA: 0x000E0E6E File Offset: 0x000DF06E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetMainMissionCustomValueScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170017A1 RID: 6049
		// (get) Token: 0x0600530C RID: 21260 RVA: 0x000E0E80 File Offset: 0x000DF080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetMainMissionCustomValueScRsp.Descriptor;
			}
		}

		// Token: 0x0600530D RID: 21261 RVA: 0x000E0E87 File Offset: 0x000DF087
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMainMissionCustomValueScRsp()
		{
		}

		// Token: 0x0600530E RID: 21262 RVA: 0x000E0E9A File Offset: 0x000DF09A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMainMissionCustomValueScRsp(GetMainMissionCustomValueScRsp other) : this()
		{
			this.mainMissionList_ = other.mainMissionList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600530F RID: 21263 RVA: 0x000E0ED0 File Offset: 0x000DF0D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMainMissionCustomValueScRsp Clone()
		{
			return new GetMainMissionCustomValueScRsp(this);
		}

		// Token: 0x170017A2 RID: 6050
		// (get) Token: 0x06005310 RID: 21264 RVA: 0x000E0ED8 File Offset: 0x000DF0D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MainMission> MainMissionList
		{
			get
			{
				return this.mainMissionList_;
			}
		}

		// Token: 0x170017A3 RID: 6051
		// (get) Token: 0x06005311 RID: 21265 RVA: 0x000E0EE0 File Offset: 0x000DF0E0
		// (set) Token: 0x06005312 RID: 21266 RVA: 0x000E0EE8 File Offset: 0x000DF0E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005313 RID: 21267 RVA: 0x000E0EF1 File Offset: 0x000DF0F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetMainMissionCustomValueScRsp);
		}

		// Token: 0x06005314 RID: 21268 RVA: 0x000E0F00 File Offset: 0x000DF100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetMainMissionCustomValueScRsp other)
		{
			return other != null && (other == this || (this.mainMissionList_.Equals(other.mainMissionList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005315 RID: 21269 RVA: 0x000E0F50 File Offset: 0x000DF150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.mainMissionList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005316 RID: 21270 RVA: 0x000E0F9D File Offset: 0x000DF19D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005317 RID: 21271 RVA: 0x000E0FA5 File Offset: 0x000DF1A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005318 RID: 21272 RVA: 0x000E0FB0 File Offset: 0x000DF1B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.mainMissionList_.WriteTo(ref output, GetMainMissionCustomValueScRsp._repeated_mainMissionList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005319 RID: 21273 RVA: 0x000E1000 File Offset: 0x000DF200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.mainMissionList_.CalculateSize(GetMainMissionCustomValueScRsp._repeated_mainMissionList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600531A RID: 21274 RVA: 0x000E1054 File Offset: 0x000DF254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetMainMissionCustomValueScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.mainMissionList_.Add(other.mainMissionList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600531B RID: 21275 RVA: 0x000E10A1 File Offset: 0x000DF2A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600531C RID: 21276 RVA: 0x000E10AC File Offset: 0x000DF2AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.mainMissionList_.AddEntriesFrom(ref input, GetMainMissionCustomValueScRsp._repeated_mainMissionList_codec);
				}
			}
		}

		// Token: 0x0400207C RID: 8316
		private static readonly MessageParser<GetMainMissionCustomValueScRsp> _parser = new MessageParser<GetMainMissionCustomValueScRsp>(() => new GetMainMissionCustomValueScRsp());

		// Token: 0x0400207D RID: 8317
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400207E RID: 8318
		public const int MainMissionListFieldNumber = 6;

		// Token: 0x0400207F RID: 8319
		private static readonly FieldCodec<MainMission> _repeated_mainMissionList_codec = FieldCodec.ForMessage<MainMission>(50U, MainMission.Parser);

		// Token: 0x04002080 RID: 8320
		private readonly RepeatedField<MainMission> mainMissionList_ = new RepeatedField<MainMission>();

		// Token: 0x04002081 RID: 8321
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04002082 RID: 8322
		private uint retcode_;
	}
}
